package top.tupobi.zing.service.socket.packet;

public class DataType {

    /**
     * socket包状态code
     */
    // 正常
    public static final int CODE_SOCKET_STATUS_NORMAL = 60001;
    //  异常：校验不通过
    public static final int CODE_SOCKET_STATUS_ABNORMAL = 60002;

    /**
     * 心跳包类型
     */
    public static final int HEARTBEAT_TYPE_NORMAL = 80001;
    public static final int HEARTBEAT_TYPE_ABNORMAL = 80002;

    /**
     * socket包类型
     */
    // 正常心跳
    public static final int DATA_TYPE_NORMAL_HEARTBEAT = 70001;
    // 停止心跳
    public static final int DATA_TYPE_STOP_HEARTBEAT = 70002;
    // 添加好友
    public static final int DATA_TYPE_ADD_FRIEND = 70003;
    // 新的好友申请
    public static final int DATA_TYPE_NEW_FRIEND_APPLY = 70004;
    // 发送消息
    public static final int DATA_TYPE_MESSAGE_SEND = 70005;
    // 发送消息结果
    public static final int DATA_TYPE_MESSAGE_SEND_RESULT = 70006;
    // 接收消息
    public static final int DATA_TYPE_MESSAGE_RECEIVE = 70007;


    /**
     * message类型和状态
     * 0未读(成功)1已读2发送中3发送失败
     */
    public static final int MESSAGE_TYPE_TEXT = 90001;
    public static final int MESSAGE_TYPE_IMG = 90002;

    public static final int MESSAGE_TYPE_STATUS_UNREAD = 0;
    public static final int MESSAGE_TYPE_STATUS_READED = 1;
    public static final int MESSAGE_TYPE_STATUS_SENDING = 2;
    public static final int MESSAGE_TYPE_STATUS_SEND_FAIL = 3;


}
